• Home
  • Raw
  • Download

Lines Matching refs:assertEqual

20             self.assertEqual(something, sentinel.Something2, "unpatched")
21 self.assertEqual(something, sentinel.Something)
27 self.assertEqual(something, sentinel.Something2, "unpatched")
29 self.assertEqual(something, sentinel.Something)
34 self.assertEqual(something, mock_something, "unpatched")
37 self.assertEqual(something, sentinel.Something)
46 self.assertEqual(Foo.something, original)
52 self.assertEqual(something, mock_something, "unpatched")
53 self.assertEqual(something_else, mock_something_else,
56 self.assertEqual(something, sentinel.Something)
57 self.assertEqual(something_else, sentinel.SomethingElse)
62 self.assertEqual(something, mock_something, "unpatched")
63 self.assertEqual(mock_something, sentinel.Patched, "wrong patch")
64 self.assertEqual(something, sentinel.Something)
74 self.assertEqual(m, mock.__enter__.return_value)
91 self.assertEqual(something, mock_something, "unpatched")
94 self.assertEqual(something, mock_again, "unpatched")
96 self.assertEqual(something, mock_something,
99 self.assertEqual(something, sentinel.Something, "not restored")
104 self.assertEqual(something, mock_something, "unpatched")
107 self.assertEqual(something_else, mock_something_else,
110 self.assertEqual(something, sentinel.Something)
111 self.assertEqual(something_else, sentinel.SomethingElse)
117 self.assertEqual(foo, {'a': 'b'})
118 self.assertEqual(foo, {})
122 self.assertEqual(foo, {'a': 'b'})
125 self.assertEqual(foo, {})
136 self.assertEqual(patch2.call_count, 1)
137 self.assertEqual(patch1.call_count, 0)
139 self.assertEqual(patch1.call_count, 1)
162 self.assertEqual(mock.mock_calls, expected_calls)
178 self.assertEqual(mock.mock_calls, expected_calls)
197 self.assertEqual(result, 'foo')
209 self.assertEqual(line1, 'foo\n')
210 self.assertEqual(line2, 'bar\n')
211 self.assertEqual(line3, 'baz\n')
212 self.assertEqual(h.readline(), '')
219 self.assertEqual(result, 'foo')
220 self.assertEqual(h.readline(), '')
229 self.assertEqual(lines[0], 'foo\n')
230 self.assertEqual(lines[1], 'bar\n')
231 self.assertEqual(lines[2], 'baz\n')
232 self.assertEqual(h.readline(), '')
245 self.assertEqual(line1, 'foo\n')
246 self.assertEqual(line2, 'bar\n')
247 self.assertEqual(lines[0], 'baz\n')
248 self.assertEqual(h.readline(), '')
256 self.assertEqual(result, ['foo\n', 'bar\n', 'baz\n'])
265 self.assertEqual(result, ['foo\n', 'bar\n', 'baz'])
273 self.assertEqual(result, b'\xc6')
283 self.assertEqual(line1, b'abc\n')
284 self.assertEqual(line2, b'def\n')
285 self.assertEqual(line3, b'ghi\n')
293 self.assertEqual(result, [b'abc\n', b'def\n', b'ghi\n'])
301 self.assertEqual(mock().read(10), some_data[:10])
302 self.assertEqual(mock().read(10), some_data[:10])
305 self.assertEqual(f.read(10), some_data[:10])
306 self.assertEqual(f.read(10), some_data[10:])
317 self.assertEqual(line1, 'foo\n')
318 self.assertEqual(rest, ['bar\n', 'baz\n'])
325 self.assertEqual(line1, 'foo\n')
326 self.assertEqual(rest, 'bar\nbaz\n')
337 self.assertEqual(handle.read(), 'bar')
338 self.assertEqual(handle.readline(), 'bar')
339 self.assertEqual(handle.readlines(), ['bar'])
342 self.assertEqual(handle.readline(), 'bar')
343 self.assertEqual(handle.readline(), 'bar')