Exemplo n.º 1
0
    def testRequiredFields(self):
        required = WgsDnaPrep.required_fields()

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

        self.assertTrue(len(required) > 0,
                        "required_field() did not return empty value.")
Exemplo n.º 2
0
    def testRequiredFields(self):
        required = WgsDnaPrep.required_fields()

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

        self.assertTrue(
            len(required) > 0, "required_field() did not return empty value.")
Exemplo n.º 3
0
        "nucl_acid_ext": "test",
        "project_name": "test",
        "rel_to_oxygen": "test",
        "rindex": "test",
        "samp_collect_device": "test",
        "samp_mat_process": "test",
        "samp_size": "test",
        "seq_meth": "test",
        "sop": ["a", "b", "c"],
        "source_mat_id": ["a", "b", "c"],
        "submitted_to_insdc": True,
        "url": ["a", "b", "c"]
    }

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

test_prep = WgsDnaPrep()

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.mims = mims
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" ] }
Exemplo n.º 4
0
    "nucl_acid_ext": "test",
    "project_name": "test",
    "rel_to_oxygen": "test",
    "rindex": "test",
    "samp_collect_device": "test",
    "samp_mat_process": "test",
    "samp_size": "test",
    "seq_meth": "test",
    "sop": ["a", "b", "c"],
    "source_mat_id": ["a", "b", "c"],
    "submitted_to_insdc": True,
    "url": ["a", "b", "c"]
}

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

test_prep = WgsDnaPrep()

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.mims = mims
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"}