[apparmor] [patch] add tests for aamode.py
Steve Beattie
steve at nxnw.org
Thu Nov 27 00:50:30 UTC 2014
On Thu, Nov 27, 2014 at 12:29:12AM +0100, Christian Boltz wrote:
> Hello,
>
> this patch adds tests for sub_str_to_mode() and split_log_mode() in
> aamode.py. These are the functions that Peter's patch changes.
>
> Those tests were written with the "old" functions in place (without
> Peter's patch) to make sure they match the current behaviour.
>
> Spoiler: Peter's aamode.py patch passes all tests ;-)
can you add
def test_split_log_mode_6(self):
self.assertEqual(split_log_mode('rw::rw'), ('rw', 'rw'))
to AamodeTest_split_log_mode, and
def test_sub_str_to_mode_dupes(self):
self.assertEqual(sub_str_to_mode('rwrwrw'), {'r', 'w'})
to AamodeTest_sub_str_to_mode, please?
Acked-by: Steve Beattie <steve at nxnw.org>
(I do wonder what happens with split_log_mode('r::w::r') )
Thanks.
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20141126/6766bb96/attachment.pgp>
More information about the AppArmor
mailing list