mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 15:47:25 +01:00 
			
		
		
		
	Make sure strictRfc is on before testing for assertions.
This commit is contained in:
		
							parent
							
								
									6c22927055
								
							
						
					
					
						commit
						995ba6f229
					
				| @ -32,6 +32,7 @@ from supybot.test import * | ||||
| import copy | ||||
| import pickle | ||||
| 
 | ||||
| import supybot.conf as conf | ||||
| import supybot.ircmsgs as ircmsgs | ||||
| import supybot.ircutils as ircutils | ||||
| 
 | ||||
| @ -168,10 +169,11 @@ class FunctionsTestCase(SupyTestCase): | ||||
|                 'PRIVMSG foo,bar :baz\r\n') | ||||
| 
 | ||||
|     def testWhois(self): | ||||
|         self.assertEqual(str(ircmsgs.whois('foo')), 'WHOIS :foo\r\n') | ||||
|         self.assertEqual(str(ircmsgs.whois('foo,bar')), 'WHOIS :foo,bar\r\n') | ||||
|         self.assertRaises(AssertionError, ircmsgs.whois, '#foo') | ||||
|         self.assertRaises(AssertionError, ircmsgs.whois, 'foo,#foo') | ||||
|         with conf.supybot.protocols.irc.strictRfc.context(True): | ||||
|             self.assertEqual(str(ircmsgs.whois('foo')), 'WHOIS :foo\r\n') | ||||
|             self.assertEqual(str(ircmsgs.whois('foo,bar')), 'WHOIS :foo,bar\r\n') | ||||
|             self.assertRaises(AssertionError, ircmsgs.whois, '#foo') | ||||
|             self.assertRaises(AssertionError, ircmsgs.whois, 'foo,#foo') | ||||
| 
 | ||||
|     def testBan(self): | ||||
|         channel = '#osu' | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Valentin Lorentz
						Valentin Lorentz