Back to index

python3.2  3.2.2
Public Member Functions
test.test_mailbox.TestMailboxSuperclass Class Reference
Inheritance diagram for test.test_mailbox.TestMailboxSuperclass:
Inheritance graph
[legend]
Collaboration diagram for test.test_mailbox.TestMailboxSuperclass:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_notimplemented

Detailed Description

Definition at line 552 of file test_mailbox.py.


Member Function Documentation

Definition at line 554 of file test_mailbox.py.

00554 
00555     def test_notimplemented(self):
00556         # Test that all Mailbox methods raise NotImplementedException.
00557         box = mailbox.Mailbox('path')
00558         self.assertRaises(NotImplementedError, lambda: box.add(''))
00559         self.assertRaises(NotImplementedError, lambda: box.remove(''))
00560         self.assertRaises(NotImplementedError, lambda: box.__delitem__(''))
00561         self.assertRaises(NotImplementedError, lambda: box.discard(''))
00562         self.assertRaises(NotImplementedError, lambda: box.__setitem__('', ''))
00563         self.assertRaises(NotImplementedError, lambda: box.keys())
00564         self.assertRaises(NotImplementedError, lambda: box.keys())
00565         self.assertRaises(NotImplementedError, lambda: box.values().__next__())
00566         self.assertRaises(NotImplementedError, lambda: box.__iter__().__next__())
00567         self.assertRaises(NotImplementedError, lambda: box.values())
00568         self.assertRaises(NotImplementedError, lambda: box.items().next())
00569         self.assertRaises(NotImplementedError, lambda: box.items())
00570         self.assertRaises(NotImplementedError, lambda: box.get(''))
00571         self.assertRaises(NotImplementedError, lambda: box.__getitem__(''))
00572         self.assertRaises(NotImplementedError, lambda: box.get_message(''))
00573         self.assertRaises(NotImplementedError, lambda: box.get_string(''))
00574         self.assertRaises(NotImplementedError, lambda: box.get_bytes(''))
00575         self.assertRaises(NotImplementedError, lambda: box.get_file(''))
00576         self.assertRaises(NotImplementedError, lambda: '' in box)
00577         self.assertRaises(NotImplementedError, lambda: box.__contains__(''))
00578         self.assertRaises(NotImplementedError, lambda: box.__len__())
00579         self.assertRaises(NotImplementedError, lambda: box.clear())
00580         self.assertRaises(NotImplementedError, lambda: box.pop(''))
00581         self.assertRaises(NotImplementedError, lambda: box.popitem())
00582         self.assertRaises(NotImplementedError, lambda: box.update((('', ''),)))
00583         self.assertRaises(NotImplementedError, lambda: box.flush())
00584         self.assertRaises(NotImplementedError, lambda: box.lock())
00585         self.assertRaises(NotImplementedError, lambda: box.unlock())
00586         self.assertRaises(NotImplementedError, lambda: box.close())
00587 

Here is the call graph for this function:


The documentation for this class was generated from the following file: