OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Tests exercising the various classes in xmppserver.py.""" | 6 """Tests exercising the various classes in xmppserver.py.""" |
7 | 7 |
8 import unittest | 8 import unittest |
9 | 9 |
10 import base64 | 10 import base64 |
11 import xmppserver | 11 import xmppserver |
12 | 12 |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 self.xmpp_server.SendNotification('channel', 'data') | 412 self.xmpp_server.SendNotification('channel', 'data') |
413 self.AssertSentDataLength(2) | 413 self.AssertSentDataLength(2) |
414 | 414 |
415 self.xmpp_server.EnableNotifications() | 415 self.xmpp_server.EnableNotifications() |
416 self.xmpp_server.SendNotification('channel', 'data') | 416 self.xmpp_server.SendNotification('channel', 'data') |
417 self.AssertSentDataLength(3) | 417 self.AssertSentDataLength(3) |
418 | 418 |
419 | 419 |
420 if __name__ == '__main__': | 420 if __name__ == '__main__': |
421 unittest.main() | 421 unittest.main() |
OLD | NEW |