'test that simple insertion of a flow works'

def test_process_flow_mod_add(self):

    c = self.conn
    s = self.switch
    t = s.table
    msg = ofp_flow_mod(priority=5, cookie=826366246, actions=[ofp_action_output(port=5)])
    c.to_switch(msg)
    self.assertEqual(len(t.entries), 1)
    e = t.entries[0]
    self.assertEqual(e.priority, 5)
    self.assertEqual(e.cookie, 826366246)
    self.assertEqual(e.actions, [ofp_action_output(port=5)])
