def testLoggablesNotEqual(self): cmd1 = sysinfo.Command("ls -l") cmd2 = sysinfo.Command("ls -la") self.assertNotEqual(cmd1, cmd2) file1 = sysinfo.Logfile("/proc/cpuinfo") file2 = sysinfo.Logfile("/etc/fstab") self.assertNotEqual(file1, file2)
def test_loggables_equal(self): cmd1 = sysinfo.Command("ls -l") cmd2 = sysinfo.Command("ls -l") self.assertEqual(cmd1, cmd2) file1 = sysinfo.Logfile("/proc/cpuinfo") file2 = sysinfo.Logfile("/proc/cpuinfo") self.assertEqual(file1, file2)