def check_same_file(self, path1, path2): content1 = helper.uuid() content2 = helper.uuid() with open(path1, 'r') as f: content1 = f.read() with open(path2, 'r') as f: content2 = f.read() self.assertEqual(content1, content2) self.check_stat(path1, path2)
def test_get_by_invalid_name(self): group = ops.group(name=helper.uuid()) self.assertTrue(group.id is None) self.assertTrue(group.name is None) self.assertFalse(group)
def test_get_by_invalid_name(self): user = ops.user(name=helper.uuid()) self.assertTrue(user.id is None) self.assertTrue(user.name is None) self.assertFalse(user)
def text(self): return ('"some uuid" \' *>/ %s' % helper.uuid()).encode('utf-8')