'Tests to make sure that the instructions are correctly pulled from the sample xml above.
It also makes sure that if no instructions exist, that it does in fact return nothing.'

def test_extract_instructions(self):

    xmltree = etree.fromstring(self.sample_xml)
    expected_xml = u'<div><p>Test    Instructions.</p></div>'
    actual_xml = self.mod._extract_instructions(xmltree)
    self.assertIsNotNone(actual_xml)
    self.assertEqual(expected_xml.strip(), actual_xml.strip())
    xmltree = etree.fromstring('<annotatable>foo</annotatable>')
    actual = self.mod._extract_instructions(xmltree)
    self.assertIsNone(actual)
