Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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)
Example #7
0
 def text(self):
     return ('"some uuid" \' *>/ %s' % helper.uuid()).encode('utf-8')