AkurAI Build
Menu

cosmic-mobile

public

Latest change a8ee2eaae0bd8aa979db3219390e3b2d7a5b98e6 - Add core app pages and touch phone keypad 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)
        self.assertIn('["1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "0", "#"]', source)
        self.assertIn('self.first.pop()', source)
        self.assertIn('Button::new("Delete")', source)

if __name__ == '__main__':
    unittest.main()