def test_post_created_at_turn(self): turn.increment(2) ThreadPrototype.create(self.subcategory, 'thread-2-caption', self.account, 'thread-2-text') self.assertEqual(PostPrototype._db_latest().created_at_turn, turn.number())
def test_post_created_at_turn(self): current_turn = TimePrototype.get_current_time() current_turn.increment_turn() current_turn.increment_turn() ThreadPrototype.create(self.subcategory, 'thread-2-caption', self.account, 'thread-2-text') self.assertEqual(PostPrototype._db_latest().created_at_turn, current_turn.turn_number)
def test_post_created_at_turn(self): current_turn = TimePrototype.get_current_time() current_turn.increment_turn() current_turn.increment_turn() ThreadPrototype.create(self.subcategory, 'thread-2-caption', self.account, 'thread-2-text') self.assertEqual(PostPrototype._db_latest().created_at_turn, current_turn.turn_number)