Пример #1
0
 def setup(self):
     self.device = DeviceFactory.create()
Пример #2
0
    def test_fingerprint(self):
        expected = 'a4a4 aeca b361 a574  83d4 8fa8 e5f3 5efa'

        device = DeviceFactory.create()
        assert device.fingerprint == expected
Пример #3
0
 def test_has_relation_to_user(self):
     device = DeviceFactory.create()
     assert device.user is not None
Пример #4
0
 def test_device_can_have_unknown_authorized_status(self):
     device = DeviceFactory.create()
     assert device.authorized is None