Exemplo n.º 1
0
 def test_create_selection_all_fields(self):
     """This is a test for creating a new selection object, with only the all fields being entered"""
     test_selection = Selection(
         selection = "test selection", 
         notes = "4932")
     test_selection.save()
     self.assertEquals(test_selection.__unicode__(), "test selection")
Exemplo n.º 2
0
 def test_selection_slugify(self):
     """This is a test for the cell line name being correctly slugified"""
     test_selection = Selection(selection = "test selection")
     test_selection.save()
     self.assertEquals(test_selection.slug, "test-selection")
Exemplo n.º 3
0
 def test_create_selection_minimal(self):
     """This is a test for creating a new selection object, with only the minimum fields being entered"""
     test_selection = Selection(selection = "test selection")
     test_selection.save()
     self.assertEquals(test_selection.__unicode__(), "test selection")