コード例 #1
0
ファイル: tests.py プロジェクト: BridgesLab/ExperimentDB
 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")
コード例 #2
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")
コード例 #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")
コード例 #4
0
ファイル: tests.py プロジェクト: BridgesLab/ExperimentDB
 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")