Example #1
0
File: tests.py Project: thoas/nydus
 def test_handles_arg_list_with_defaults(self):
     conn = mock.Mock()
     create_connection(conn, 0, ['localhost'], {'foo': 'baz'})
     conn.assert_called_once_with(0, 'localhost', foo='baz')
Example #2
0
File: tests.py Project: tupy/nydus
 def test_handles_arg_list_with_defaults(self):
     conn = mock.Mock()
     create_connection(conn, 0, ['localhost'], {'foo': 'baz'})
     conn.assert_called_once_with(0, 'localhost', foo='baz')
Example #3
0
File: tests.py Project: thoas/nydus
 def test_does_apply_defaults(self):
     conn = mock.Mock()
     create_connection(conn, 0, {'resp': 'bar'}, {'foo': 'baz'})
     conn.assert_called_once_with(0, foo='baz', resp='bar')
Example #4
0
File: tests.py Project: tupy/nydus
 def test_does_apply_defaults(self):
     conn = mock.Mock()
     create_connection(conn, 0, {'resp': 'bar'}, {'foo': 'baz'})
     conn.assert_called_once_with(0, foo='baz', resp='bar')