old_contents: from django.test import TestCase
  from models.Node import Node
  from mock import MagicMock, Mock
  from models.Author import Author
  from django.contrib.auth.models import User
  from unittest import skip
  
  class NodeModelTests(TestCase):
  
      def setUp(self):
          su_username = "superuser"
          su_password = "test1234"
          remote_username = "testsuperuser"
          remote_password = "testpassword"
          superuser = User.objects.create_superuser(su_username, 'test@test.com', su_password)
          self.node = Node.create(
              displayName = "Home Node",
              baseUrl = "http://localhost:8000/",
              user = superuser,
              username = remote_username,
              password = remote_password 
              )
          self.node.save()
  
      def test_get_posts(self):
          posts = self.node.get_posts()
          print posts
          self.assertEqual([], posts)
  
new_contents: from django.test import TestCase
  from models.Node import Node
  from mock import MagicMock, Mock
  from models.Author import Author
  from django.contrib.auth.models import User
  from unittest import skip
  
  class NodeModelTests(TestCase):
  
      def setUp(self):
          su_username = "superuser"
          su_password = "test1234"
          self.remote_username = "testsuperuser"
          self.remote_password = "testpassword"
          superuser = User.objects.create_superuser(su_username, 'test@test.com', su_password)
          self.node = Node.create(
              displayName = "The Node",
              baseUrl = "http://localhost:8000/",
              user = superuser,
              username = self.remote_username,
              password = self.remote_password 
              )
          self.node.save()
  
      def test_node_creates_id(self):
          self.assertIsNotNone(self.node.id)
  
      def test_node_displayName_equal(self):
          self.assertEqual(self.node.displayName, "The Node")
  
      def test_node_baseUrl_equal(self):
          self.assertEqual(self.node.baseUrl, "http://localhost:8000/")
  
      def test_node_username_equal(self):
          self.assertEqual(self.node.username, self.remote_username)
  
      def test_node_password_equal(self):
          self.assertEqual(self.node.password, self.remote_password)
  
      def test_get_posts(self):
          posts = self.node.get_posts()
          print posts
          self.assertTrue(hasattr(posts, '__iter__'))
  
subject: add row tests for node model