Skip to content

Commit

Permalink
Readd one of the blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Apr 6, 2020
1 parent f561d9d commit 2d4dfce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test_literal.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,22 @@ def testTrueBoolean(self):
self.assertTrue(test_value.value)
test_value = Literal("1",datatype = _XSD_BOOLEAN)
self.assertTrue(test_value.value)

def testFalseBoolean(self):
test_value = Literal("falsE", datatype = _XSD_BOOLEAN)
self.assertFalse(test_value.value)
test_value = Literal("0",datatype = _XSD_BOOLEAN)
self.assertFalse(test_value.value)

def testNonFalseBoolean(self):
test_value = Literal("abcd", datatype = _XSD_BOOLEAN)
self.assertRaises(DeprecationWarning)
self.assertFalse(test_value.value)
test_value = Literal("10",datatype = _XSD_BOOLEAN)
self.assertRaises(DeprecationWarning)
self.assertFalse(test_value.value)



class TestBindings(unittest.TestCase):

Expand Down Expand Up @@ -186,5 +186,6 @@ def unlexify(s):
self.assertEqual(specific_l.toPython(), s)
self.assertEqual(specific_l.datatype, datatype)


if __name__ == "__main__":
unittest.main()

0 comments on commit 2d4dfce

Please sign in to comment.