Пример #1
0
class BaseTests( unittest.TestCase ):
	def setUp( self ):
		self.api = AgileTaskAPI( 'CLOrJlYa5Ny02fs-F8Zz' );

	def _isList( self, item ):
		return type( [] ) == type( item )

	def test_json_decode( self ):
		""" Tests a simple json string to make sure it decodes correctly """
		jsonString = '[{"hello":1}]'
		json = self.api._decodeJson( jsonString )
		self.assertTrue( len( json ) == 1 )