~ubuntu-branches/ubuntu/trusty/exabgp/trusty

« back to all changes in this revision

Viewing changes to QA/unittest/protocol.py

  • Committer: Package Import Robot
  • Author(s): Henry-Nicolas Tourneur
  • Date: 2012-03-22 12:00:00 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120322120000-v4aj8h69mhpmgbjq
Tags: 2.0.7-1

* New upstream release
* Fix bad clean target for build/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
protocol.py
5
5
 
6
6
Created by Thomas Mangin on 2009-08-27.
7
 
Copyright (c) 2009-2011 Exa Networks. All rights reserved.
 
7
Copyright (c) 2009-2012 Exa Networks. All rights reserved.
8
8
"""
9
9
 
10
10
import unittest
89
89
                        _data = StringIO(Open(4,65000,'1.2.3.4',Capabilities().default(),90).message())
90
90
                        def read (self,l):
91
91
                                return self._data.read(l)
92
 
                
 
92
 
93
93
                network = MyPeer('')
94
 
                
 
94
 
95
95
                bgp = Protocol(self.neighbor,network)
96
96
                bgp.follow = False
97
97
 
99
99
                bgp.new_open()
100
100
                bgp.read_open('127.0.0.1')
101
101
                after = bgp.neighbor.hold_time
102
 
                
 
102
 
103
103
                self.assertEqual(after,min(before,90))
104
104
 
105
105
#       def test_7_message (self):
113
113
#               updates = new_Update(txt)
114
114
 
115
115
if __name__ == '__main__':
116
 
        unittest.main()
 
 
b'\\ No newline at end of file'
 
116
        unittest.main()