Example #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!')
Example #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...')
Example #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...')
Example #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!')
Example #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...')
Example #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...')