Пример #1
0
 def test_yi_now(self, mock_time):
     mock_time.return_value = 1339419650
     clock.yi(self.phenny, None)
     self.phenny.say.assert_called_with('Yes! PARTAI!')
Пример #2
0
 def test_yi_soon(self, mock_time):
     mock_time.return_value = 1339419000
     clock.yi(self.phenny, None)
     self.phenny.say.assert_called_with('Soon...')
Пример #3
0
 def test_yi_normal(self, mock_time):
     mock_time.return_value = 369182
     clock.yi(self.phenny, None)
     self.phenny.say.assert_called_with('Not yet...')
Пример #4
0
    def test_yi_now(self, mock_time):
        mock_time.return_value = 1339419650
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Yes! PARTAI!')
Пример #5
0
    def test_yi_soon(self, mock_time):
        mock_time.return_value = 1339419000
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Soon...')
Пример #6
0
    def test_yi_normal(self, mock_time):
        mock_time.return_value = 369182
        yi(self.phenny, None)

        self.phenny.say.assert_called_with('Not yet...')