Ejemplo n.º 1
0
 def test_verifying_getTypedValue_foreigntext(self):
     outcome = getTypedValue('None','foreigntext')
     self.assertTrue(outcome is '')
Ejemplo n.º 2
0
 def test_verifying_getTypedValue_booleanThenReturnTrue(self):
     outcome = getTypedValue('true','bool')
     self.assertTrue(outcome == True)
Ejemplo n.º 3
0
 def test_verifying_getTypedValue_datetime(self):
     outcome = getTypedValue('2012-01-12T8:9:10','datetime')
     self.assertTrue(outcome.day == 12)
Ejemplo n.º 4
0
 def test_verifying_getTypedValue_time(self):
     outcome = getTypedValue('2012-01-12T8:9:10','time')
     self.assertTrue(outcome.minute == 9)
Ejemplo n.º 5
0
 def test_verifying_getTypedValue_dateUsingDatetime(self):
     outcome = getTypedValue('12/01/2012 8:9:10','date')
     self.assertTrue(outcome.day == 12)
Ejemplo n.º 6
0
 def test_verifying_getTypedValue_dateUsingOtherDateFormat(self):
     outcome = getTypedValue('12/01/2012','date')
     self.assertTrue(outcome.day == 12)
Ejemplo n.º 7
0
 def test_verifying_getTypedValue_dateThenReturnDay(self):
     outcome = getTypedValue('2012-01-12','date')
     self.assertTrue(outcome.day == 12)
Ejemplo n.º 8
0
 def test_verifying_getTypedValue_decimalThenReturnDecimal(self):
     outcome = getTypedValue('1.5','decimal')
     self.assertTrue(outcome == 1.5)
Ejemplo n.º 9
0
 def test_verifying_getTypedValue_integerThenReturnInteger(self):
     outcome = getTypedValue('1','int')
     self.assertTrue(outcome == 1)