Lines Matching refs:got
62 got = rpc_utils._convert_to_kwargs_only(func, (1, 2), {})
63 self.assertEquals(got, {'a': 1, 'b': 2})
69 got = rpc_utils._convert_to_kwargs_only(func, (), {'a': 1, 'b': 2})
70 self.assertEquals(got, {'a': 1, 'b': 2})
76 got = rpc_utils._convert_to_kwargs_only(func, (1, 2), {'c': 3})
77 self.assertEquals(got, {'a': 1, 'b': 2, 'c': 3})
83 got = rpc_utils._convert_to_kwargs_only(func, (1,), {'b': 2, 'c': 3})
84 self.assertEquals(got, {'a': 1, 'b': 2, 'c': 3})
90 got = rpc_utils._convert_to_kwargs_only(func, (1, 2), {})
91 self.assertEquals(got, {'a': 1, 'b': 2})
97 got = rpc_utils._convert_to_kwargs_only(func, (1, 2, 3), {})
98 self.assertEquals(got, {'a': 1, 'b': 2, 'args': (3,)})
112 got = rpc_utils._allowed_hosts_for_master_job([])
113 self.assertFalse(got)
120 got = rpc_utils._allowed_hosts_for_master_job([1, 2])
121 self.assertFalse(got)
128 got = rpc_utils._allowed_hosts_for_master_job([1, 2])
129 self.assertTrue(got)
134 got = rpc_utils._allowed_hosts_for_master_job([1, 2])
135 self.assertTrue(got)