def test_liveticker_get_time_when_gameStarted_is_set(self): DBSetup().g62_status_empty() last_game = Gameinfo.objects.last() last_game.gameStarted = '12:00' last_game.status = '1st Half' last_game.save() liveticker = Liveticker(Gameinfo.objects.last()) assert liveticker.get_time() == '12:00'
def test_liveticker_get_time_when_gameStarted_empty(self): DBSetup().g62_status_empty() last_game = Gameinfo.objects.last() liveticker = Liveticker(last_game) assert liveticker.get_time() == '10:00'