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

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