xexpected = [3, 7]
yexpected = [4, 8]
self.assertEqual(xargs[0], xexpected)
self.assertEqual(yargs[0], yexpected)
if __name__ == '__main__':
    unittest.main()
How can I assert calls that accept sequence arguments with Python Mock?