text: 
  # This file is autogenerated. Do not edit it manually.
  # If you want change the content of this file, edit
  #
  #   spec/fixtures/responses/whois.nic.gl/status_registered
  #
  # and regenerate the tests with the following script
  #
  #   $ scripts/generate_tests.py
  #
  
  from nose.tools import *
  from dateutil.parser import parse as time_parse
  import yawhois
  
  class TestWhoisNicGlStatusRegistered(object):
  
      def setUp(self):
          fixture_path = "spec/fixtures/responses/whois.nic.gl/status_registered.txt"
          host         = "whois.nic.gl"
          part         = yawhois.record.Part(open(fixture_path, "r").read(), host)
          self.record  = yawhois.record.Record(None, [part])
  
      def test_status(self):
          eq_(self.record.status, 'registered')
  
      def test_available(self):
          eq_(self.record.available, False)
  
      def test_domain(self):
          eq_(self.record.domain, "google.gl")
  
      def test_nameservers(self):
          eq_(self.record.nameservers.__class__.__name__, 'list')
          eq_(len(self.record.nameservers), 2)
          eq_(self.record.nameservers[0].__class__.__name__, 'Nameserver')
          eq_(self.record.nameservers[0].name, "ns1.google.com")
          eq_(self.record.nameservers[0].ipv4, None)
          eq_(self.record.nameservers[0].ipv6, None)
          eq_(self.record.nameservers[1].__class__.__name__, 'Nameserver')
          eq_(self.record.nameservers[1].name, "ns2.google.com")
          eq_(self.record.nameservers[1].ipv4, None)
          eq_(self.record.nameservers[1].ipv6, None)
  
      def test_registered(self):
          eq_(self.record.registered, True)
  
      def test_created_on(self):
          eq_(self.record.created_on.__class__.__name__, 'datetime')
          eq_(self.record.created_on, time_parse('2003-03-11 03:00:00 UTC'))
  
      def test_registrar(self):
          eq_(self.record.registrar.__class__.__name__, 'Registrar')
          eq_(self.record.registrar.id, None)
          eq_(self.record.registrar.name, "MarkMonitor")
          eq_(self.record.registrar.organization, None)
          eq_(self.record.registrar.url, "http://www.markmonitor.com")
  
      def test_updated_on(self):
          eq_(self.record.updated_on.__class__.__name__, 'datetime')
          eq_(self.record.updated_on, time_parse('2013-12-02 19:11:52 UTC'))
  
      def test_domain_id(self):
          eq_(self.record.domain_id, "Imp669-GL")
  
      def test_expires_on(self):
          eq_(self.record.expires_on.__class__.__name__, 'datetime')
          eq_(self.record.expires_on, time_parse('2015-01-01 03:00:00 UTC'))
  