1.assertEqual(self, first, second, msg=None) --判断两个参数相等:first == second 2.assertNotEqual(self, first, second, msg=None) --判断两个参数不相等:first != second 3.assertIn(self, member, container, msg=None) --判断是字符串是否包含:member in container 4.assertNotIn(self, mem…