Пример #1
0
    def test_of_reference(self):
        expected="['src'# address]"
	self.assertEqual(of_reference(Cell("address"), of_source("src")).str,
                                                                      expected)

	self.assertEqual(of_reference(Range("address"), of_source("src")).str,
                                                                      expected)

        self.assertRaises(TypeError, of_reference, Number("address"))
Пример #2
0
 def test_of_source(self):
     self.assertEqual(of_source("test"), "'test'#")
     self.assertRaises(TypeError, of_source, 8)