Menu
cosmic-mobile
publicLatest change 18acb08c731805eba7903ced29babc9251e97a46 - Enable exact branch build for app UI by AkurAI Build
from pathlib import Path
import unittest
class PhoneKeypad(unittest.TestCase):
def test_phone_has_touch_keypad_and_delete(self):
source = (Path(__file__).resolve().parents[1] / 'src/main.rs').read_text()
self.assertIn('Grid::new("phone-keypad")', source)
for digit in '123456789*0#':
self.assertIn('"' + digit + '"', source)
self.assertIn('self.first.pop()', source)
self.assertIn('Button::new("Delete")', source)
if __name__ == '__main__':
unittest.main()