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.dz/status_available
  #
  # 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 TestWhoisNicDzStatusAvailable(object):
  
      def setUp(self):
          fixture_path = "spec/fixtures/responses/whois.nic.dz/status_available.txt"
          host         = "whois.nic.dz"
          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, 'available')
  
      def test_available(self):
          eq_(self.record.available, True)
  
      def test_nameservers(self):
          assert_raises(yawhois.exceptions.AttributeNotSupported, self.record.nameservers)
  
      def test_registered(self):
          eq_(self.record.registered, False)
  
      def test_created_on(self):
          assert_raises(yawhois.exceptions.AttributeNotSupported, self.record.created_on)
  
      def test_updated_on(self):
          assert_raises(yawhois.exceptions.AttributeNotSupported, self.record.updated_on)
  
      def test_expires_on(self):
          assert_raises(yawhois.exceptions.AttributeNotSupported, self.record.expires_on)
  