Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 93 results for
unittest
- Page 1
unittest problem
Programming
Software Development
15 Years Ago
by rs_java
unittest
problem
Problem running unittest
Programming
Software Development
13 Years Ago
by Teiji
…, in __init__ self.runTests() File "C:\PYTHON27\LIB\
unittest
\main.py", line 231, in runTests sys.exit(not…result.wasSuccessful()) SystemExit: False[/COLOR] [CODE] import random import
unittest
class TestSequenceFunctions(
unittest
.TestCase): def setUp(self): self.seq = range(10) def…
wtf unittest.TestCase doesn't exist?
Programming
Software Development
13 Years Ago
by ultimatebuster
…"D:\My Projects\TAGEngine\TAGEngine\trunk\
unittest
.py", line 1, in <module…> import
unittest
File "D:\My Projects\TAGEngine\TAGEngine\trunk\
unittest
.py", line 4…, in <module> class CheckStructureAcceptance(
unittest
.TestCase): AttributeError:…
Re: wtf unittest.TestCase doesn't exist?
Programming
Software Development
13 Years Ago
by Beat_Slayer
… like this mate? [CODE]>>> import
unittest
>>> dir (
unittest
) ['FunctionTestCase', 'TestCase', 'TestLoader', 'TestProgram', 'TestResult', 'TestSuite', 'TextTestRunner', '… 'sys', 'time', 'traceback', 'types'] >>> print
unittest
.TestCase <class '
unittest
.TestCase'>[/CODE] EDIT: Mate change your script filename…
Re: wtf unittest.TestCase doesn't exist?
Programming
Software Development
13 Years Ago
by ultimatebuster
nope. dir(
unittest
) lookse like this: ['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'parsers', '
unittest
'] I shoulda posted that on the first post.
Re: wtf unittest.TestCase doesn't exist?
Programming
Software Development
12 Years Ago
by Utopia_Tz
Hi, you can not define you filename as
unittest
which is LIB name... this will make program search
unittest
.TestCase form you own file. so if you rename your file.It's will be ok.
Re: wtf unittest.TestCase doesn't exist?
Programming
Software Development
13 Years Ago
by Beat_Slayer
Mate change your script filename, it's replacing the module. Your script named
unittest
.py, it's replacing the module file. Cheers and Happy coding
pyinstaller 2.1 generated executable not running correctly
Programming
Software Development
9 Years Ago
by sbaw
…: delayed conditional __import__ hack detected at line 0 -
unittest
.main (C:\Python27\lib\
unittest
\main.pyc) W: delayed conditional __import__ hack detected… at line 0 -
unittest
.loader (C:\Python27\lib\
unittest
\loader.pyc) W: delayed conditional __import__ hack detected…
Re: Error on simple Selenium Python script
Programming
Software Development
11 Years Ago
by genevish
…", line 24, in <module>
unittest
.main() File "/System/Library/Frameworks/Python.framework/…Frameworks/Python.framework/Versions/2.7/lib/python2.7/
unittest
/loader.py", line 128, in loadTestsFromNames suites…/Python.framework/Versions/2.7/lib/python2.7/
unittest
/loader.py", line 100, in loadTestsFromName parent…
python code
Programming
Software Development
10 Years Ago
by aravind07k
…if __name__ == "__main__": import
unittest
from testgenDecorator import for_examples from checkChessCheck import check_check,… check_knight_attack, find_kings, check_pawn_attack class TestChessCheck(
unittest
.TestCase): @for_examples(([['r','n','b','q…
How to pass the parsed data from the csv to the python class metods
Programming
Software Development
14 Years Ago
by sedampatil
…gt; Below is another class which uses selenium
unittest
frame work, i want to pass the values…body> from selenium import selenium import
unittest
, time, re class NewTest(
unittest
.TestCase): def setUp(self): self.verificationErrors =…) if __name__ == "__main__":
unittest
.main() </body></html>
Error on simple Selenium Python script
Programming
Software Development
11 Years Ago
by genevish
… should be: from selenium import webdriver import
unittest
, time, re, reporting, sys class VerifyAboutPage(
unittest
.TestCase): capabilities = None def setUp(self): driver…": sys.argv[1], "platform": sys.argv[2],}
unittest
.main() I'm sure it's a simple error.
Cannot run multiple test case class through PyUnit in Eclipse
Programming
Software Development
10 Years Ago
by pittip
… cases. These test cases (classes) are: class Test_ID_94017(
unittest
.TestCase): ex = Excel() def setUp(self): self.driver…def tearDown(self): self.driver.close() AND class Test_ID_94018(
unittest
.TestCase): ex = Excel() def setUp(self): self.driver…
assertRaises test fails
Programming
Software Development
10 Years Ago
by krystosan
… filterList class TestFilterList(
unittest
.TestCase): """ docstring for TestFilterList """ …._filterby) self.assertEquals(['Boy'], self.flObj.filterList()) if __name__ == '__main__':
unittest
.main() my above test test_checkListItem() fails , for the below filterList…
Re: assertRaises test fails
Programming
Software Development
10 Years Ago
by krystosan
…[1])) and the test module: import
unittest
import filterList import mox class TestFilterList(
unittest
.TestCase): """ docstring for…assertEquals(['Bar'], filteredList) self.mox.VerifyAll() if __name__ == '__main__':
unittest
.main() but the test_usingMox that is supposed to test the…
Re: Error on simple Selenium Python script
Programming
Software Development
11 Years Ago
by woooee
… attribute](http://www.diveintopython.net/object_oriented_framework/class_attributes.html). class VerifyAboutPage(
unittest
.TestCase): capabilities = None def setUp(self): driver = webdriver.Remote(desired_capabilities…
mox create object
Programming
Software Development
11 Years Ago
by krystosan
…/wiki/MoxDocumentation)] where does PersonDao comes from ? import
unittest
import mox class DaoUnitTest(
unittest
.TestCase): def setUp(self): # Create an instance of…
Unknown syntax error in C++ class
Programming
Software Development
16 Years Ago
by dgr81
… "CS240Exception.h" #include <ostream> #include "
UnitTest
.h" //! No-arg constructor URL::URL() { } //! Constructor. Creates a…
MySQLdb interface problem
Programming
Databases
14 Years Ago
by bhanu1225
… copy os2emxpath types _Qd copy_reg parser unicodedata _Qdoffs crypt pdb
unittest
_Qt csv pickle urllib _Res ctypes pickletools urllib2 _Scrap…
Regd. Multi threading on Windows XP
Programming
Software Development
14 Years Ago
by dilbert_here00
… the device response in an excel file. I used the
unittest
module to make a test case for each command. I…
NEWS: Python 2.7 released
Programming
Software Development
13 Years Ago
by TrustyTony
…. Improvements in this release include: * An ordered dictionary type * New
unittest
features including test skipping and new assert methods * A much…
Python 3.2.1 was released on July 10th, 2011.
Programming
Software Development
12 Years Ago
by TrustyTony
… code to Python 3. Highlights are: numerous improvements to the
unittest
module PEP 3147, support for .pyc repository directories PEP 3149…
Destructor w/ Pointer - Placement and Syntax Issue
Programming
Software Development
12 Years Ago
by freedomflyer
…; #include <ostream> #include <iostream> #include "
UnitTest
.h" #include "LinkedList.h" template <typename…
Re: Destructor w/ Pointer - Placement and Syntax Issue
Programming
Software Development
12 Years Ago
by freedomflyer
…; #include <ostream> #include <iostream> #include "
UnitTest
.h" #include "LinkedList.h" template <typename…
how to test a method that does not return anything
Programming
Software Development
10 Years Ago
by krystosan
… different scnarios so how do i test above method using
unittest
or mox ? any help would be extremely appreciated..
Getting Error While Scraping Proxies Page
Programming
Software Development
8 Years Ago
by dadaas
… import webdriver from selenium.webdriver.support.ui import WebDriverWait import
unittest
driver = webdriver.Firefox() driver.get("http://proxylist.hidemyass.com…
Gradle update
Programming
Mobile Development
6 Years Ago
by Saboor880
… message appears: ""Unable to resolve dependency for: 'app @
UnitTest
/compileClassPath: could not found any version that matches com.android…
Re: Dr.Python: running same output again
Programming
Software Development
17 Years Ago
by jrcagle
…(self): return self.height * self.width class TestRectangle(
unittest
.TestCase): # the magic occurs here # by subclassing …, w, h) if __name__ == "__main__":
unittest
.main() #automagically creates an instance of my # TestRectangle class…
Re: SQL injection vulnerability scanner
Programming
Software Development
11 Years Ago
by ryantroop
You could probably look into the
unittest
module, and make tests based on …assert does, and you may not even need
unittest
, but
unittest
gives a lot of built in tools to…you take. Of course, if youre making a
unittest
, you will also need to write a script …SQL admins will make 4) Know how to use
unittest
, mysql.connect within python 5) Know how to…
Re: phpunit installation says about reflection extension
Programming
Web Development
16 Years Ago
by lukescammell
… PHPUnit 3.1.3 by Sebastian Bergmann. Usage: phpunit [switches]
UnitTest
[
UnitTest
.php] --log-graphviz <file> Log test execution in… Waits for a keystroke after each test. --skeleton Generate skeleton
UnitTest
class for Unit in Unit.php. --help Prints this usage…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC