Example #1
0
 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"'}])
Example #2
0
 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"'
                      }])