def setup(self): self.device = DeviceFactory.create()
def test_fingerprint(self): expected = 'a4a4 aeca b361 a574 83d4 8fa8 e5f3 5efa' device = DeviceFactory.create() assert device.fingerprint == expected
def test_has_relation_to_user(self): device = DeviceFactory.create() assert device.user is not None
def test_device_can_have_unknown_authorized_status(self): device = DeviceFactory.create() assert device.authorized is None