Exemple #1
0
 def test_login(self, model: Model):
     assert not model.login()
     model._names = ['', 'a']
     model._name_mapping = {'a': '1234'}
     model.set_name_index(1)
     model.set_pin('1234')
     assert model.login()
     model.set_pin('5678')
     assert not model.login()
Exemple #2
0
 def test_set_pin(self, model: Model):
     model.set_pin('1234')
     assert model.pin == '1234'