예제 #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
예제 #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
예제 #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
예제 #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