示例#1
0
    def test_notify_when_no_projection(self):
        mock_client = MockClient()
        n = Notifier(mock_client)

        n.notify_set_fba_lineup(
            team_name="name",
            transitions=[
                LineupTransition(PlayerTest.lebron, BasketballSlot.POINT_GUARD, BaseballSlot.BENCH)
            ],
            total_points=123.0,
            player_to_fp={} # no projection for lebron
        )

        self.assertEqual(mock_client.messages[0][0],"name: 123.0 points\nJames: PG->BE (0.0)")