def test_txt_getset(self): z = Zone() record = {'alias': 'joe', 'txt': '"Located in a black hole" " somewhere"'} self.assertEqual(z.txt(), []) self.assertEqual(z.txt(record), [{'alias': 'joe', 'txt': '"Located in a black hole" " somewhere"'}])
def test_txt_getset(self): z = Zone() record = { 'alias': 'joe', 'txt': '"Located in a black hole" " somewhere"' } self.assertEqual(z.txt(), []) self.assertEqual(z.txt(record), [{ 'alias': 'joe', 'txt': '"Located in a black hole" " somewhere"' }])