コード例 #1
0
def test_jobs_employers_must_equal_3():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_(3, len(features["employers"]))
    eq_(3, len(features["jobs"]))
コード例 #2
0
def test_most_recent_job_is_vp():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_("VP", features["jobs"][0])
コード例 #3
0
def test_most_recent_employer_is_calcentral():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_("CalCentral, University of California, Berkeley",
        features["employers"][0])
コード例 #4
0
def test_degree_is_information_management():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_("Master of Information Management and Systems", features["degree"][0])
コード例 #5
0
def test_first_job_is_systems_engineer():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_("Systems Engineer", features["jobs"][len(features["jobs"]) - 1])
コード例 #6
0
def test_gives_5_features_from_xml():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_(5, len(features))
コード例 #7
0
def test_institution_is_berkeley():
    xml_file = etree.parse("test_divya/samples/13.txt")
    features = xml_features(xml_file)
    eq_("University of California", features["institution"][0])
コード例 #8
0
def test_most_recent_employer_is_calcentral():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_("CalCentral, University of California, Berkeley",features["employers"][0])
コード例 #9
0
def test_jobs_employers_must_equal_3():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_(3,len(features["employers"]))
	eq_(3,len(features["jobs"]))
コード例 #10
0
def test_most_recent_job_is_vp():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_("VP",features["jobs"][0])
コード例 #11
0
def test_first_job_is_systems_engineer():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_("Systems Engineer",features["jobs"][len(features["jobs"])-1])
コード例 #12
0
def test_degree_is_information_management():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_("Master of Information Management and Systems",features["degree"][0])
コード例 #13
0
def test_institution_is_berkeley():
	xml_file = etree.parse("test_divya/samples/13.txt")
        features = xml_features(xml_file)
	eq_("University of California",features["institution"][0])
コード例 #14
0
def test_gives_5_features_from_xml():
	xml_file = etree.parse("test_divya/samples/13.txt")
	features = xml_features(xml_file)
	eq_(5,len(features))