Commits

Mark Roddy  committed 699e965

Renamed the assertSchema() function to assertSchemaEquals()

  • Participants
  • Parent commits a965ca3

Comments (0)

Files changed (2)

File squealer/pigtest.py

         """
         self._proxy.override(alias, query)
 
-    def assertSchema(self, alias, schema_string):
+    def assertSchemaEquals(self, alias, schema_string):
         """
         Assert that the specified relation has the supplied schema.
         schema_string should be a valid Pig schema notiation.

File tests/test_pigtest.py

         test = some_test('testNulValue')
         test.testNulValue()
 
-    def testAssertSchema_AreEqual(self):
+    def testAssertSchemaEquals_AreEqual(self):
         class some_test(PigTest):
             Parameters = {
                 "input" : self.INPUT_FILE,
                 "output" : "top_3_queries",
                 }
             PigScript = self.PIG_SCRIPT
-            def testAssertSchema_AreEqual(self):
-                self.assertSchema('queries_limit', 'query:chararray,count:long')
+            def testAssertSchemaEquals_AreEqual(self):
+                self.assertSchemaEquals('queries_limit', 'query:chararray,count:long')
         test = some_test('testAssertSchema_AreEqual')
-        test.testAssertSchema_AreEqual()
+        test.testAssertSchemaEquals_AreEqual()
 
-    def testAssertSchema_NotEqual(self):
+    def testAssertSchemaEquals_NotEqual(self):
         class some_test(PigTest):
             Parameters = {
                 "input" : self.INPUT_FILE,
                 "output" : "top_3_queries",
                 }
             PigScript = self.PIG_SCRIPT
-            def testAssertSchema_NotEqual(self):
+            def testAssertSchemaEquals_NotEqual(self):
                 self.assertSchema('queries_limit', 'query:chararray,count:long,notes:chararray')
-        test = some_test('testAssertSchema_NotEqual')
-        self.assertRaises(self.failureException, test.testAssertSchema_NotEqual)
+        test = some_test('testAssertSchemaEquals_NotEqual')
+        self.assertRaises(self.failureException, test.testAssertSchemaEquals_NotEqual)
 
-    def testAssertSchema_AreEqual_Whitespace_Ignored(self):
+    def testAssertSchemaEquals_AreEqual_Whitespace_Ignored(self):
         class some_test(PigTest):
             Parameters = {
                 "input" : self.INPUT_FILE,
                 "output" : "top_3_queries",
                 }
             PigScript = self.PIG_SCRIPT
-            def testAssertSchema_AreEqual_Whitespace_Ignored(self):
+            def testAssertSchemaEquals_AreEqual_Whitespace_Ignored(self):
                 self.assertSchema('queries_limit', ' query:  chararray,  count:long ')
-        test = some_test('testAssertSchema_AreEqual_Whitespace_Ignored')
-        test.testAssertSchema_AreEqual_Whitespace_Ignored()
+        test = some_test('testAssertSchemaEquals_AreEqual_Whitespace_Ignored')
+        test.testAssertSchemaEquals_AreEqual_Whitespace_Ignored()
 
 
 class TestPigFloatingPointTest(unittest.TestCase):