Esempio n. 1
0
 def test_import_processor(self):
     sledge.hammer(test_import, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['import'])
Esempio n. 2
0
 def test_list_indexing(self):
     sledge.hammer(test_list, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['list'])
Esempio n. 3
0
 def test_nullstring(self):
     sledge.hammer(test_nullstr, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, '')
Esempio n. 4
0
 def test_id_and_class(self):
     sledge.hammer(test_id_class, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['id_class'])
Esempio n. 5
0
 def test_func_code(self):
     sledge.hammer(test_code, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['code'])
Esempio n. 6
0
 def test_func_read(self):
     sledge.hammer(test_read, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['read'])
Esempio n. 7
0
 def test_func_b64(self):
     sledge.hammer(test_b64, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['b64'])
Esempio n. 8
0
 def test_func_encuri(self):
     sledge.hammer(test_encuri, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(str(result), exp['encuri'])
Esempio n. 9
0
 def test_vars(self):
     sledge.hammer(test_var, ret=True)
     result = sledge.get_build_output()
     self.assertEqual(result, exp['var'])