Beispiel #1
0
 def test_set_is_read_false(self):
     n = NotificationFactory(read_at=datetime.now())
     n.is_read = False
     assert n.read_at is None
Beispiel #2
0
 def test_set_is_read_false(self):
     n = NotificationFactory(read_at=datetime.now())
     n.is_read = False
     assert n.read_at is None
Beispiel #3
0
 def test_set_is_read_true(self):
     n = NotificationFactory(read_at=None)
     n.is_read = True
     assert n.read_at is not None
Beispiel #4
0
 def test_set_is_read_true(self):
     n = NotificationFactory(read_at=None)
     n.is_read = True
     assert n.read_at is not None