Example #1
0
    def testRequiredFields(self):
        required = SixteenSDnaPrep.required_fields()

        self.assertEqual(type(required), tuple,
                         "required_fields() returns a tuple.")

        self.assertTrue(len(required) > 0,
                        "required_field() did not return empty value.")
Example #2
0
    def testRequiredFields(self):
        required = SixteenSDnaPrep.required_fields()

        self.assertEqual(type(required), tuple,
                         "required_fields() returns a tuple.")

        self.assertTrue(len(required) > 0,
                        "required_field() did not return empty value.")
Example #3
0
      "rel_to_oxygen": "blah",
      "rindex": "blah",
      "samp_collect_device": "blah",
      "samp_mat_process": "blah",
      "samp_size": "blah",
      "seq_meth": "blah",
      "sop": ["a", "b", "c"],
      "source_mat_id": ["a", "b", "c"],
      "submitted_to_insdc": True,
      "target_gene": "blah",
      "target_subfragment": "blah",
      "url": ["a", "b", "c"]
    }

print("Required fields: ")
print(SixteenSDnaPrep.required_fields())

test_prep = SixteenSDnaPrep()

test_prep.comment = "test comment. Hello world!"
test_prep.frag_size = 2
test_prep.lib_layout = "test lib_layout"
test_prep.lib_selection = "test lib_selection"
test_prep.mimarks = mimarks
test_prep.storage_duration = 3
test_prep.sequencing_center = "test center"
test_prep.sequencing_contact = "test contact"
test_prep.prep_id = "test prep id"
test_prep.ncbi_taxon_id = "NCBI123ABC"
test_prep.links = { "prepared_from": [ "610a4911a5ca67de12cdc1e4b4011876" ] }
Example #4
0
    "rel_to_oxygen": "blah",
    "rindex": "blah",
    "samp_collect_device": "blah",
    "samp_mat_process": "blah",
    "samp_size": "blah",
    "seq_meth": "blah",
    "sop": ["a", "b", "c"],
    "source_mat_id": ["a", "b", "c"],
    "submitted_to_insdc": True,
    "target_gene": "blah",
    "target_subfragment": "blah",
    "url": ["a", "b", "c"]
}

print("Required fields: ")
print(SixteenSDnaPrep.required_fields())

test_prep = SixteenSDnaPrep()

test_prep.comment = "test comment. Hello world!"
test_prep.frag_size = 2
test_prep.lib_layout = "test lib_layout"
test_prep.lib_selection = "test lib_selection"
test_prep.mimarks = mimarks
test_prep.storage_duration = 3
test_prep.sequencing_center = "test center"
test_prep.sequencing_contact = "test contact"
test_prep.prep_id = "test prep id"
test_prep.ncbi_taxon_id = "NCBI123ABC"
test_prep.links = {"prepared_from": ["610a4911a5ca67de12cdc1e4b4011876"]}