Exemple #1
0
    def test_alert_helper_method_proxy_calls_ios_custom_message(
            self, mock_alert_ios):
        device_state.device_type = 'ios'

        alert(['foo'])

        self.assertTrue(mock_alert_ios.called_with('foo'))
Exemple #2
0
    def test_alert_helper_method_proxy_calls_ios(self, mock_alert_ios):
        device_state.device_type = 'ios'

        alert([])

        self.assertTrue(mock_alert_ios.called_with('objection!'))